package com.example.sysao.service.impl;

import com.example.sysao.mapper.RecordMapper;
import com.example.sysao.pejo.Record;
import com.example.sysao.service.RecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RecordServiceImp implements RecordService {
    @Resource
    private RecordMapper recordMapper;

    @Override
    public boolean addRecord(Record record) {
        return recordMapper.insertrecord(record) != 0;
    }

    @Override
    public List<Record> findAll() {
        return recordMapper.selectAll();
    }

}
